package cn.k.service;

import cn.k.domain.Role;
import cn.k.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRoleService {
    void save(Role role, Long[] permissionIds);

    void delete(Long id);

    void update(Role role, Long[] permissionIds);

    Role get(Long id);

    List<Role> selectAll();

    List<Role> selectForList(QueryObject qo);

    PageInfo<Role> query(QueryObject qo);

    List<Role> queryByEmployeeId(Long employeeId);

    List<String> queryRoleByEmployee(Long id);
}
